package procsim;

public class PaintMEM2 extends PaintTab{
    public PaintMEM2 (Paint parent){
        super(parent);
        // Coordinates
        Design.FRD.addCoords(this, Design.M2Or1.getUpper2Coords(40));
        Design.FWR.addCoords(this, Design.M2Or1.getLower2Coords(40));
        Design.decCNT.addCoords(this, Design.M2Or1.getResCoords(73));
        Design.ldCNT.addCoords(this, Design.CNT.getLdCoords(50));
        Design.CNTIn.setSpacing(10).addCoords(this, 295, 100, 295, 70);
        Design.CNTOut2.addCoords(this, 294, 160, 294, 202);
        Design.CNTOut1.addCoords(this, Design.CNT.getOutCoords(45));
        Design.CNTOut0.addCoords(this, 317, 160, 317, 202);
        Design.M2Or2Out.addCoords(this, Design.M2Or2.getResCoords(23));
        Design.M2Or2Out.addCoords(this, Design.M2And.getUpper2Coords(25));
        Design.decCNT.addCoords(this, Design.M2And.getLower2Coords(85));
        Design.decCNT.addCoords(this, 245, 152, 245, 270);
        Design.FC.addCoords(this, Design.M2And.getResCoords(40));
        Design.DFC.addCoords(this, Design.M2DFF.getQCoords(40));

        //Collections
        elements.add(Design.M2Or1);
        elements.add(Design.M2Or2);
        elements.add(Design.M2And);
        elements.add(Design.M2DFF);
        elements.add(Design.CNT);

        lines.add(Design.CNTIn);
        lines.add(Design.decCNT);
        lines.add(Design.ldCNT);
        lines.add(Design.CNTOut0);
        lines.add(Design.CNTOut1);
        lines.add(Design.CNTOut2);
        lines.add(Design.M2Or2Out);
        lines.add(Design.FRD);
        lines.add(Design.FWR);
        lines.add(Design.FC);
        lines.add(Design.DFC);
    }
}
